﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Upreader.Application.Model;
using System.IO;
using System.Threading.Tasks;

namespace Upreader.Engine
{
    public class DownloadSegmentContext
    {
        #region Fields

        #endregion // Fields

        #region Constructor

        public DownloadSegmentContext(Segment segment)
        {
            if (segment == null)
                throw new ArgumentNullException("segment");

            Segment = segment;
        }

        #endregion // Constructor

        #region Properties

        /// <summary>
        /// Get the underlying segment this downloadSegmentContext is bound to
        /// </summary>
        public Segment Segment { get; private set; }

        public DownloadSegmentContextState State { get; set; }

        public Stream DataStream { get; set; }

        #endregion // Properties

        #region Methods

        #endregion // Methods
    }
}
